package spindles.api.db;

import spindles.api.util.ApplicationException;

import com.sleepycat.je.DatabaseException;

public abstract class DBCommand {
	
	
	public DBCommand(){}
	
	public abstract void execute() throws DatabaseException;
	
	public void run(){
		try {
			execute();
		} catch (DatabaseException e) {
			throw new ApplicationException(e);
		}
	}
}
